import {request} from "@/utils/request";
// 根据筛选条件查询字典数据
export function getDicList(data) {
    return request({
      url: '/dic/page',
      method: 'get',
      params: data
    })
  }

//新增字典
  export function dicAdd(data) {
    return request({
      url: '/dic/add',
      method: 'post',
      data
    })
  }

//禁用
  export function disableDic(dicId,id) {
    return request({
      url: '/dic/disable?dicId='+dicId+'&id='+id,
      method: 'get',
    })
  }
  
  //启用字典
  export function enableDic(dicId,id) {
    return request({
      url: '/dic/enable?dicId='+dicId+'&id='+id,
      method: 'get',
    })
  }

  //删除字典
  export function dicDel(dicId,id) {
    return request({
      url: '/dic/delete?dicId='+dicId+'&id='+id,
      method: 'DELETE',
    })
  }
  

    //获取二级字典
    export function dicMenu(id) {
      return request({
        url: '/dic/menu?menuId='+id,
        method: 'get',
      })
    }
  


 